package com.zsrt.java.day20170103.lh.ex.demo02;

import java.util.Scanner;

public class Exception01 {
	
	public static void main(String[] args) {
		int i=0;
		int j=0;
		System.out.println("输入两个整数");
		Scanner sc=new Scanner(System.in);
		
		String a=sc.next();
		String b=sc.next();
		
		
		try {
			i=Integer.parseInt(a);
			j=Integer.valueOf(b);
			int temp=i/j;
			System.out.println("两个数字相除的结果："+temp);
			System.out.println("两个数字相除的结果：");
		} catch (Exception e) {
			
			System.err.println("出现异常："+e);
			e.printStackTrace();
		}finally{
			
			System.out.println("执行finally：");
		}

	}

}
